#include <iostream>
using namespace std;

int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int T;
  for (cin >> T; T; T--) {
    int n;

    cin >> n;
    if (n % 2 == 0) {
      cout << "-1\n";
    } else {
      for (; n; n--) {
        cout << n << " ";
      }
      cout << "\n";
    }
  }
  return 0;
}